package com.yunshang.shoppingmall.service.impl;

import com.yunshang.shoppingmall.entity.ProductAlls;
import com.yunshang.shoppingmall.mapper.ProductAllsMapper;
import com.yunshang.shoppingmall.service.ProductAllsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service("productAllsService")
public class ProductAllsServiceImpl implements ProductAllsService {
    @Autowired
    ProductAllsMapper productAllsMapper;

    @Override
    public List<ProductAlls> selectProductAlls() {
        return  productAllsMapper.selectProductAlls();
    }

    @Override
    public List<ProductAlls> selectByProductName(String productName) {
        return productAllsMapper.selectByProductName(productName);
    }
}
